package com.fang.rpc.controller;

import com.fang.rpc.service.HelloService;
import io.jboot.components.rpc.annotation.RPCInject;
import io.jboot.web.controller.JbootController;
import io.jboot.web.controller.annotation.RequestMapping;

/**
 * @author fangdengfu
 * @date 19-1-26 下午3:02
 */
@RequestMapping("/")
public class IndexController extends JbootController {

    @RPCInject(port = 9091, group = "test", version = "1.0", timeout = 30000)
    HelloService helloService;

    public void hello() {
        renderText(helloService.hello());
    }

}
